
import myaxios from "@/main.js";

export function doGet(url,xHost,onResult,onErr){
    myaxios({
        url,
        headers:{
         "X-Client-Info": '{"a":"3000","ch":"1002","v":"5.0.4","e":"16337815972401750006890497","bc":"440100"}',
         "X-Host": xHost,
        },
      })
      .then((res)=>{
          console.log('ajax-helperdata=',res.data);
       onResult(res.data);
      })
      .catch(err=>{
       if(!onErr){
           console.log('cenimaErr',err);
       }else{
           onErr(err)
       }
      })
}

